<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="<?=site_url();?>application/views/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?=site_url();?>application/views/css/jquery.autocomplete.css" />
<link rel="stylesheet" type="text/css" href="<?=site_url();?>application/views/js/jquery/plugins/jqtransform/jqtransform.css" />

<title>Kubik Mobile <?=$title;?></title>
<script type="text/javascript" src="<?=site_url();?>application/views/js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?=site_url();?>application/views/js/jquery.autocomplete.js"></script>
			<script type="text/javascript">
			$(function() {
				$("#form-name").autocomplete({
					url: '<?php echo base_url();?>activity/checkuser',
					showResult: function(value,data) {
						return '<span style="color:#222">'+value+'</span>';
					},		
					maxItemsToShow: 10
				});
			});
</script>
<script type="text/javascript" src="<?php //site_url();?>application/views/js/jquery/plugins/jqtransform/jqtransform.js" ></script>
<script type="text/javascript" src="<?=site_url();?>application/views/js/jquery/plugins/accordion/jquery.accordion.js"></script>
<!--[if IE]><script language="javascript" type="text/javascript" src="<?=site_url();?>application/views/js/jquery/plugins/flotgraph/excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="<?=site_url();?>application/views/js/jquery/plugins/flotgraph/jquery.flot.js"></script>

<script language="javascript" type="text/javascript" src="<?=site_url();?>application/views/js/jquery/plugins/flotgraph/jquery.flot.selection.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
	/*Set skin for select, options and checkbox*/
	$('.skinnable').jqTransform({imgPath:'img/'});
	
	/*Create visitors graphs*/
	var d = [
			[1000000000, 710],
			[1200000000, 639],
			[1400000000, 540]];
	
    for(var i = 0; i < d.length; ++i)
	{
		d[i][0] += 60 * 60 * 1000;
	}
	
    function weekendAreas(axes) {
        var markings = [];
        var d = new Date(axes.xaxis.min);
        // go to the first Saturday
        d.setUTCDate(d.getUTCDate() - ((d.getUTCDay() + 1) % 7))
        d.setUTCSeconds(0);
        d.setUTCMinutes(0);
        d.setUTCHours(0);
        var i = d.getTime();
        do {
            markings.push({ xaxis: { from: i, to: i + 2 * 24 * 60 * 60 * 1000 } });
            i += 7 * 24 * 60 * 60 * 1000;
        } while (i < axes.xaxis.max);

        return markings;
    }
    
    var options = {
        xaxis: { mode: "time" },
        selection: { mode: "x" },
        grid: {},
		colors: ["#638425"]
    };
	
    var plot = $.plot($("#visits"), [d], options);
	
	
	/*table row select*/
	$("table.grid thead tr th.col-row-select input").click(function() {
		if(!$(this).is(":checked")) {
			$("table.grid tbody tr td.col-row-select input").each(function() {
				$(this).attr("checked",  true);
				$(this).change();
			});
		}
		else
		{
			$("table.grid tbody tr td.col-row-select input").each(function() {
				$(this).attr("checked",  false);
				$(this).change();
			});
		}
	});
	
	/*Create accordion*/
	$(".accordion").accordion({ 
		header: ".accordion-tab", 
		alwaysOpen: false,
		active: false,
		autoheight: false
	});
});
</script>

</head>

<body>
<div class="container">
  <div class="header">
    <div class="welcome">
      <div class="welcome-border-middle"> <span><a href="<?=site_url('dashboard');?>" >Home</a> | <a href="" ><?=$this->session->userdata('user_id');?></a> | <?=$this->session->userdata('user_posName');?> | <a href="<?=site_url('auth');?>" >Log Out</a></span> </div>
      <div class="welcome-border-bottom"></div>
    </div>
    <div class="banner"> <img src="<?=site_url();?>application/views/images/logo.png" alt="logo" /> </div>
  </div>
  
  <?=$this->load->view($content);?>
  
</div>

</body>
</html>
